projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75ed941
)
examples: Add deprecation guards
author
Benjamin Otte
<otte@redhat.com>
Sun, 12 Oct 2014 03:51:11 +0000
(
05:51
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 12 Oct 2014 03:51:11 +0000
(
05:51
+0200)
Apparently it's not possible in GtkTextView to say "this style should
apply to all text, including newly inserted text. Or I'm just too stupid
to use its API.
So instead, keep using override_color().
examples/plugman.c
patch
|
blob
|
history
diff --git
a/examples/plugman.c
b/examples/plugman.c
index 3a4b7b3d0ce9434eb88ed7b0652fb8d3bf37ed40..e9c052a9eb08ca287baceefbe30ca42ab4cd9af6 100644
(file)
--- a/
examples/plugman.c
+++ b/
examples/plugman.c
@@
-208,7
+208,9
@@
plugin_action (GAction *action,
gdk_rgba_parse (&color, g_action_get_name (action));
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_override_color (text, 0, &color);
+G_GNUC_END_IGNORE_DEPRECATIONS
}
static void